﻿using Abp.Application.Services;
using Abp.Domain.Repositories;
using BRMC.IntelligentCommunity.IntelligentCommunity.Parkings;
using BRMC.IntelligentCommunity.Parkings.Paymethods;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BRMC.IntelligentCommunity.Parkings
{
 public   class PaymethodAppService : AsyncCrudAppService<
           Paymethod,
            PaymethodListDto,
            long,
             GetPaymethodInput,
            CreatePaymethodDto,
            UpdatePaymethodDto
            >
    {

        private readonly IRepository<Paymethod, long> _repository;
        public PaymethodAppService(IRepository<Paymethod, long> repository) : base(repository)
        {

            _repository = repository;
        }
        protected override IQueryable<Paymethod> CreateFilteredQuery(GetPaymethodInput input)
        {
            return base.CreateFilteredQuery(input)
                .Where(c => c.ParkingId == input.ParkingId);

        }
    }
}
